Global Index
HTML5 JS API Index > DOM Tutorials & Specs

NodeIterator

NodeIterator objects can be created using the createNodeIterator() method.

Properties
NodeFilter?
filter
The filter attribute must return filter.
boolean
pointerBeforeReferenceNode
The referenceNode and pointerBeforeReferenceNode attributes must return what they were initialized to.
Node
referenceNode
The referenceNode and pointerBeforeReferenceNode attributes must return what they were initialized to.
Node
root
The root attribute must return root.
unsigned long
whatToShow
The whatToShow attribute must return whatToShow.
Operations
void
detach()
The detach() method must do nothing. Its functionality (disabling a NodeIterator object) was removed, but the method itself is preserved for compatibility.
Node?
nextNode()
The nextNode() method must traverse in direction next.
Node?
previousNode()
The previousNode() method must traverse in direction previous.
Referenced by
DocumentcreateNodeIterator(...)